package com.xdwanj.studentsystem;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        StudentBiz sb = new StudentBiz();
        Student[] stu = new Student[3];

        for (int i = 0; i < 3; i++) {
            System.out.print("请输入名字：");
            stu[i].name = input.next();
            System.out.print("请输入年龄：");
            stu[i].age = input.nextInt();
            System.out.print("请输入成绩：");
            stu[i].score = input.nextInt();
        }
        sb.setStu(stu);
        for (int j = 0; j < sb.stu.length; j++) {
            System.out.println(sb.stu[j]);
        }
        for (int j = 0; j < stu.length; j++) {
            System.out.println(stu[j]);
        }

        System.out.println(sb.ScoreAvg());
        System.out.println(sb.ScoreMax());
        System.out.println(sb.scoreMin());
    }
}
